﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="CarImageBigView.aspx.vb" Inherits="Final_Web_2._0_site_1.CarImageBigView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
        <asp:Button ID="btnBackUP2DetailPage" runat="server" 
            Text="Back " />
    </p>
    <p>
        Click on the Image below to go back to detail page.<br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="CarID" DataSourceID="CarImageBigViewSqlDataSource1" 
            BorderColor="White" BorderStyle="None">
            <Columns>
                <asp:TemplateField HeaderText="Picture">
                
                 <ItemTemplate>
                 <asp:HyperLink ID="Hyperlink1" NavigateUrl ='<%# Eval("CarID", "CarInDetail.aspx?ID={0}") %>' runat ="server">
                 <asp:Image ID="Image1" runat = "server" ImageUrl ='<%# Eval("CarPicture") %>' CssClass ="CarIImageBigViewImageSize" /> 
                 </asp:HyperLink>
                 </ItemTemplate>
                
                
                
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="CarImageBigViewSqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:MercedesConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:MercedesConnectionString.ProviderName %>" 
            SelectCommand="SELECT [CarID], [CarPicture] FROM [Car] WHERE ([CarID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="CarID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
</asp:Content>
